package javaAPI.StringBuilderTest;

import java.util.Scanner;

public class StringBuilderDemo1 {
    public static void main(String[] args) {
        //使用字符创的拼接
        //字符串的翻转
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入字符串");
        StringBuilder str= new StringBuilder(sc.next());
        //Scanner sc=new Scanner(System.in);
        //String str=sc.next();
        //String result=new StringBuilder().append(str).reverse().toString();
        if (str.reverse()==str){
            System.out.println("符合提议");
        }else {
            System.out.println("不符合提议");
        }
    }
}
